package com.lianboke.link.ad.beans;

import android.text.TextUtils;

/**
 * 类型任务详情
 * Created by admin on 2018/1/5.
 */

public class OrdetTypeDetailsBean extends BaseModel{
    private Long id;//任务id
    private String name;//任务名称
    private String img;//图片地址
    private String desc;//app 描述
    private int  type;//任务类型 1： 装机任务   2：注册任务  3： 试玩任务  4：互助任务）
    private String memo;//操作手册（任务描述）
    private Float price;//价格
    private int interval;//间隔天数
    private int duration;//使用天数
    private int intervaltype;//间隔类型（ 1:连续   2：间隔）
    private String appdownload;//app 的下载地址（注册任务为weburl 时为空，可以时多个下载地址）
    private String appname;//app 包名(com.app.packname)
    private String studyurl;//视频教程地址
    private String entryurl ;//注册任务时，任务信息地址（仅注册任务）'

    private int status;//1(新任务) 、2－已启动,未完成  3、已完成，审核中   4、已入帐

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setImg(String img) {
        this.img = img;
    }
    public void setType(int type) {
        this.type = type;
    }
    public void setInterval(int interval) {
        this.interval = interval;
    }
    public void setAppname(String appname) {
        this.appname = appname;
    }
    public void setStudyurl(String studyurl) {
        this.studyurl = studyurl;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public void setIntervaltype(int intervaltype) {
        this.intervaltype = intervaltype;
    }

    public void setAppdownload(String appdownload) {
        this.appdownload = appdownload;
    }

    public void setEntryurl(String entryurl) {
        this.entryurl = entryurl;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    //===================get  方法================
    public String getDesc() {
        if(TextUtils.isEmpty(desc)){
            return "";
        }else{
            return desc;
        }
    }

    public String getMemo() {
        if(TextUtils.isEmpty(memo)){
            return "";
        }else{
            return memo;
        }
    }

    public int getInterval() {
        return interval;
    }

    public int getDuration() {
        return duration;
    }

    public int getIntervaltype() {
        return intervaltype;
    }

    public String getAppdownload() {
        if(TextUtils.isEmpty(appdownload)){
            return "";
        }else{
            return appdownload;
        }
    }

    public String getEntryurl() {
        return entryurl;
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        if(TextUtils.isEmpty(name)){
            return "";
        }else{
            return name;
        }
    }

    public String getImg() {
        if(TextUtils.isEmpty(img)){
            return "";
        }else{
            return img;
        }
    }

    public int getType() {
        return type;
    }
    public String getAppname() {
        if(TextUtils.isEmpty(appname)){
            return "";
        }else {
            return appname;
        }
    }

    public String getStudyurl() {
        if(TextUtils.isEmpty(studyurl)){
            return "";
        }else {
            return studyurl;
        }
    }
    public Float getPrice() {
        return price;
    }

    @Override
    public String toString() {
        return "OrdetTypeDetailsBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", img='" + img + '\'' +
                ", desc='" + desc + '\'' +
                ", type=" + type +
                ", memo='" + memo + '\'' +
                ", price=" + price +
                ", interval=" + interval +
                ", duration=" + duration +
                ", intervaltype=" + intervaltype +
                ", appdownload='" + appdownload + '\'' +
                ", appname='" + appname + '\'' +
                ", studyurl='" + studyurl + '\'' +
                ", entryurl='" + entryurl + '\'' +
                ", status=" + status +
                '}';
    }
}
